package com.atguigu.dga.governance.assess.demo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

public class TestDemo {
    public static void main(String[] args) {
        PersonParm personParm = new PersonParm();
        Student student = new Student();
        personParm.setStudent(student);

        student.setAge(18);
        student.setName("zs");

        Student student1 = personParm.getStudent();
        System.out.println(student1);
    }


    @Data
    private static class Student{
        private String name;
        private Integer age;

    }

    @NoArgsConstructor
    @Data
    public static class PersonParm{
        private Student student;
    }
}
